{% extends 'myadmin/base.html' %}
{% block myadmin_course2_active %}
    active
{% endblock %}
{% block myadmin %}
    <h3 style="margin-top: 15px">&emsp;&emsp;课程管理</h3>
    <table class="table table-striped table-hover text-center" style="vertical-align: middle;text-align: center;">
        <thead>
        <tr>
            <th scope="col">序号</th>
            <th scope="col">课程名</th>
            <th scope="col">课程图片</th>
            <th scope="col">用户名</th>
            <th scope="col">手机号</th>
            <th scope="col">邮箱</th>

        </tr>
        </thead>
        <tbody>
        {% for i in cource2 %}
            <tr>
                <th scope="row">{{ forloop.counter }}</th>
                <td>{{ i.course.name }}</td>
                <td>
                    <img src="/static/media/{{ i.course.photo }}" height="60px" alt="">
                </td>
                <td>{{ i.students.name }}</td>
                <td>{{ i.students.phone }}</td>
                <td>{{ i.students.email }}</td>

            </tr>
        {% endfor %}


        </tbody>
    </table>





{% endblock %}

